# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-typeguard
_pkgname=typeguard
pkgver=2.13.3
pkgrel=0
pkgdesc="run-time type checker for Python "
url="https://typeguard.readthedocs.io/"
arch="noarch"
license="MIT"
depends="py3-bracex"
makedepends="py3-setuptools py3-pytest"
checkdepends="py3-mypy"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	python3.10.patch
	"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	rm tests/mypy/test_type_annotations.py # test is broken
	PYTHONPATH="$PWD/build/lib" pytest -v
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
d0facef3bfa8b1489c4a011e4ee9b019410fc82bf7d9630d3384013960d06f018f905b1930a1c483876d1e093748dc44e6891420cc618b34a452e8637c9aee56  typeguard-2.13.3.tar.gz
b6dd89879d630e2144e42241a815d0b57584022311ac8c8e7004b337d4d5652d7440f3aab8cef6e183ff7648334f57f7a9b2d19cfb80cf7d389f54cc50969f0c  python3.10.patch
"
